home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / PORTABLE.ZIP / WSTANDEN.C < prev    next >
Text File  |  1992-11-21  |  2KB  |  64 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3. #undef wstandend
  4.  
  5. #ifndef        NDEBUG
  6. char *rcsid_wstanden = "$Header: c:/curses/portable/RCS/wstanden.c%v 2.0 1992/11/15 03:29:30 MH Rel $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   wstandend()  - attribute manipulation
  15.  
  16.   X/Open Description:
  17.        These functions manipulate the current attributes of the named
  18.        window.  These attributes can be any combination of A_STANDOUT,
  19.        A_REVERSE, A_BOLD, A_DIM, A_BLINK, A_UNDERLINE.
  20.  
  21.        These constants are defined in <curses.h> and can be combined
  22.        with the bitwise-OR operator (|).
  23.  
  24.        The current attributes of a window are applied to all characters
  25.        that are written into the window with waddch().  Attributes are
  26.        a property of the character, and move with the character
  27.        through any scrolling and insert/delete line/character operations.
  28.        To the extent possible on the particular terminal, they will be
  29.        displayed as the graphic rendition of characters put on the
  30.        screen.
  31.  
  32.        The attrset() function sets the current attributes of the given
  33.        window to attrs.  The attroff() function turns off the named
  34.        attributes without turning on or off any other attributes.  The
  35.        attron() function turs on the named attriutes without affecting
  36.        any others.  The standout function is the same as
  37.        attron( A_STANDOUT ).  The standend() function is the same as
  38.        attrset( 0 ); that is it turns off all attributes.
  39.  
  40.        NOTE:  attroff(), attron() and attrset() are macros.
  41.  
  42.   PDCurses Description:
  43.        System V compatible color support is included.
  44.        See <curses.h> for further details.
  45.  
  46.   X/Open Return Value:
  47.        These functions return OK on success and ERR on error.
  48.  
  49.   PDCurses Errors:
  50.        It is an error to call this function with a NULL window pointer.
  51.  
  52.   Portability:
  53.        PDCurses        int wstandend( WINDOW* win );
  54.        X/Open Dec '88  int wstandend( WINDOW* win );
  55.        BSD Curses      int wstandend( WINDOW* win );
  56.        SYS V Curses    int wstandend( WINDOW* win );
  57.  
  58. **man-end**********************************************************************/
  59.  
  60. int    wstandend( WINDOW *win )
  61. {
  62.        return( wattrset( win, A_NORMAL ) );
  63. }
  64.